$(function(){
    if (sessionStorage.customerNo=="null") {

    }else{
        getjycxinfo();
    }

})

function getjycxinfo() {
    $.ajax({
        url: requestUrl + "app/user/isCardBinded.do",
        type: "POST",
        data: { token: sessionStorage.token, userId: localStorage.userId,isBinded:1,paperNo:sessionStorage.paperno,paperType:sessionStorage.papertype},
        dataType: "JSON",
        success: function(json) {
            if (json.code == 0) {
            	$(json.data).each(function(i,t){
            		var div = $("<div class='kcard'><div class='klex'>"+t.cardpName+"/"+t.cardTypeName+"</div><div class='kh'>"+t.citizenCardNo+"</div></div>").appendTo(".all");
            	})
            }else{
                alert(json.message)
            }
        }
    })
}